home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Libris Britannia 4
/
science library(b).zip
/
science library(b)
/
DDJMAG
/
DDJ9203.ZIP
/
OOPASM.ZIP
/
CURSOR.ASM
< prev
next >
Wrap
Assembly Source File
|
1990-07-12
|
1KB
|
64 lines
.MODEL SMALL
INCLUDE equates.inc
INCLUDE instance.inc
INCLUDE messages.inc
INCLUDE objects.inc
IF1
INCLUDE macros.mac
INCLUDE objects.mac
INCLUDE cursor.mac
ENDIF
EXTRN Self:WORD
.CODE
COMMENT %
==============================================================================
Positions the cursor.
=============================================================================%
setCursor PROC NEAR
getInst dh,Row1,Cursor ;Get cursor row
getInst dl,Col1 ;Get cursor column
setCur dh,dl ;Position cursor
ret
setCursor ENDP
COMMENT %
==============================================================================
Sets Cursor coordinates so that it becomes hidden on next Refresh.
=============================================================================%
clrCursor PROC NEAR
setInst Row1,25,Cursor,1 ;Set cursor row
setInst Col1,0,,1 ;Set cursor column
ret
clrCursor ENDP
.DATA
defMsg Cursor,\
Refresh,\
<,,setCursor>
defMsg Cursor,\
Update,\
<clrCursor,,>
defObj Cursor,\
<>,\
<Row1,1,25,\
Col1,1,0>,\
<Refresh,Update>
END